package com.zzxy.spring12.test;

public class tes1 {
   public static void main(String[] args) {


       /*UserServiceImpl userService=new UserServiceImpl();
       System.out.println(userService);
       UserServiceImpl userService1=new UserServiceImpl();
       System.out.println(userService1);*/
       /* UserServiceImpl userService = new UserServiceImpl();
        System.out.println(userService);
        UserServiceImpl userService1 = new UserServiceImpl();
        System.out.println(userService1);
    }
    @Test
    public void test(){

    }
       ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("beans.xml");
       Object userService = context.getBean("userService");
       System.out.println(userService);

       ClassPathXmlApplicationContext context1 = new ClassPathXmlApplicationContext("beans.xml");
       Object userService1 = context.getBean("userService");
       System.out.println(userService1);
   }

    private static class ClassPathXmlApplicationContext {
        public ClassPathXmlApplicationContext() {

        }

        public ClassPathXmlApplicationContext(String s) {
        }

        public Object getBean(String userService) {
        }*/
    }
}
